package com.bsj.power.common.def.vo.pls.alarm;

import com.bsj.power.common.constant.AlarmEnum;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author LiJiaXin
 * @version 1.0.0
 * @description AlarmTypeVO
 * @time 2024/9/5 21:49
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class AlarmTypeVO {

    /**
     * 报警码
     */
    private Integer code;

    /**
     * 报警名称
     */
    private String name;

    public AlarmTypeVO(AlarmEnum alarmEnum) {
        this.code = alarmEnum.getCode();
        this.name = alarmEnum.getName();
    }
}
